public class ServerMain {

	public static void main(String[] args){
		SQLDatabase sql = new SQLDatabase();
		SynchQueue sendQueue= new SynchQueue();
		SynchQueue packetQueue= new SynchQueue();
		SynchQueue messageQueue =new SynchQueue();
		SenderThread snt = new SenderThread(sendQueue);
		NetworkSender ns = new NetworkSender(sendQueue);
		ServerMessageSender sms = new ServerMessageSender(ns,sql);
		ServerEventProcessor sep = new ServerEventProcessor(sms,messageQueue,sql);
		MessageReceiverThread mrt= new MessageReceiverThread(packetQueue,messageQueue);
		NetworkRecieverThread nrt= new NetworkRecieverThread(packetQueue);
		snt.start();
		sep.start();
		mrt.start();
		nrt.start();
	}
}